package com.beehoo.dcportal.admin.dao;

import java.util.List;
import java.util.Map;

import com.beehoo.dcportal.common.base.BaseException;
import com.beehoo.dcportal.model.ThemeBean;
import com.beehoo.dcportal.model.ThemeCodeBean;

public interface ThemeDao {
	
	/**
	 * 初始化模板CODE
	 * @return
	 * @throws BaseException
	 */
	public List<ThemeCodeBean> queryThemeCode() throws BaseException;

	/**
	 * 查询模板列表
	 * 
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public List<ThemeBean> queryThemes(Map<String, Object> paramMap)
			throws BaseException;

	/**
	 * 查询模板
	 * 
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public ThemeBean queryTheme(Map<String, Object> paramMap)
			throws BaseException;

	/**
	 * 更新模板
	 * 
	 * @param themeBean
	 * @return
	 * @throws BaseException
	 */
	public int updateTheme(ThemeBean themeBean) throws BaseException;

	/**
	 * 删除模板
	 * 
	 * @param themeId
	 * @return
	 * @throws BaseException
	 */
	public int delTheme(String themeId) throws BaseException;

	/**
	 * 创建模板
	 * 
	 * @param themeBean
	 * @return
	 * @throws BaseException
	 */
	public String createTheme(ThemeBean themeBean) throws BaseException;

	/**
	 * 设置模板是否使用
	 * @param paramMap1
	 * @param paramMap2
	 * @throws BaseException
	 */
	public void setInUseTheme(Map<String, Object> paramMap1,Map<String, Object> paramMap2) throws BaseException;
}
